import { createApp } from 'vue'
import App from './App.vue'
import AntdComponents from './plugins/antd'
import { ConfigProvider, Space, Divider } from 'ant-design-vue';
// ConfigProvider
ConfigProvider.config({
  theme: {
    primaryColor: '#FF6923',
    errorColor: '#ff4d4f',
    warningColor: '#faad14',
    successColor: '#52c41a',
    infoColor: '#1890ff',
  },
  prefixCls: 'ant',
});
// const onColorChange = (type: string, e: any) => {
//   Object.assign(colorState, { [type]: e.target.value });
// };
// onColorChange
import router from './plugins/router/index'
import './assets/css/index.less'
const app = createApp(App).use(router)
AntdComponents.forEach((component: any) => {
  app.use(component)
})
app.mount('#app')
